﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacebookAPI.FacebookProperties;
using System.Security.Policy;
using System.Runtime.Serialization;

namespace FacebookAPI.Objects
{
    [DataContract]
    public class Group : FacebookBaseObject
    {
        [DataMember(Name = "description", EmitDefaultValue = true, IsRequired = false)]
        public string Description { get; set; }

        [DataMember(Name = "email", EmitDefaultValue = true, IsRequired = false)]
        public string Email { get; set; }

        [DataMember(Name = "link", EmitDefaultValue = true, IsRequired = false)]
        public Url Link { get; set; }

        [DataMember(Name = "icon", EmitDefaultValue = true, IsRequired = false)]
        public Url Icon { get; set; }

        [DataMember(Name = "privacy", EmitDefaultValue = true, IsRequired = false)]
        public string Privacy { get; set; }

        [DataMember(Name = "parent", EmitDefaultValue = true, IsRequired = false)]
        public FacebookBaseObject Parent { get; set; }

        [DataMember(Name = "owner", EmitDefaultValue = true, IsRequired = false)]
        public FacebookBaseObject Owner { get; set; }

        [DataMember(Name = "updated_time", EmitDefaultValue = true, IsRequired = false)]
        public DateTime UpdatedTime { get; set; }

        public string GetPostData()
        {
            return "name=" + this.Name;
        }
    }
}
